import send from '../http'
export default {
  /**
   *获取服务时间的列表
   */
   getServiceTimeList (data) {
    let req = {
      data: data,
      action: 'config.serviceTime.getServiceTimeList'
    }
    return send.fetch(req, 'post')
  },
  /**
   *创建服务时间
   */
   createServiceTime (data) {
    let req = {
      data: data,
      action: 'config.serviceTime.createServiceTime'
    }
    return send.fetch(req, 'post')
  },
    /**
   *更新服务时间
   */
   updateServiceTime (data) {
    let req = {
      data: data,
      action: 'config.serviceTime.updateServiceTime'
    }
    return send.fetch(req, 'post')
  },
      /**
   *获取节假日的列表
   */
   getShiftsAndHolidaysInfo (data) {
    let req = {
      data: data,
      action: 'config.serviceTime.getShiftsAndHolidaysInfo'
    }
    return send.fetch(req, 'post')
  },
}
